using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._AnalysisTools._Extract
{
    /// <summary>
    /// <para>Select</para>
    /// <para>Extracts features from an input feature class or input feature layer, typically using a select or Structured Query Language (SQL) expression, and stores them in an output feature class.</para>
    /// <para>通常使用选择或结构化查询语言 （SQL） 表达式从输入要素类或输入要素图层中提取要素，并将其存储在输出要素类中。</para>
    /// </summary>    
    [DisplayName("Select")]
    public class Select : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Select()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input feature class or layer from which features are selected.</para>
        /// <para>从中选择要素的输入要素类或图层。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class to be created. If no expression is used, it contains all input features.</para>
        /// <para>要创建的输出要素类。如果未使用表达式，则它包含所有输入要素。</para>
        /// </param>
        public Select(object _in_features, object _out_feature_class)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Analysis Tools";

        public override string ToolName => "Select";

        public override string CallName => "analysis.Select";

        public override List<string> AcceptEnvironments => ["MDomain", "MResolution", "MTolerance", "XYDomain", "XYResolution", "XYTolerance", "configKeyword", "extent", "outputCoordinateSystem", "outputMFlag", "outputZValue"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _where_clause];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input feature class or layer from which features are selected.</para>
        /// <para>从中选择要素的输入要素类或图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class to be created. If no expression is used, it contains all input features.</para>
        /// <para>要创建的输出要素类。如果未使用表达式，则它包含所有输入要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Expression</para>
        /// <para>An SQL expression used to select a subset of features.</para>
        /// <para>用于选择要素子集的 SQL 表达式。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Expression")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _where_clause { get; set; } = null;


        public Select SetEnv(object MDomain = null, object MResolution = null, object MTolerance = null, object XYDomain = null, object XYResolution = null, object XYTolerance = null, object configKeyword = null, object extent = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZValue = null)
        {
            base.SetEnv(MDomain: MDomain, MResolution: MResolution, MTolerance: MTolerance, XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, configKeyword: configKeyword, extent: extent, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZValue: outputZValue);
            return this;
        }

    }

}